<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fine-SE | 智能代码项目工作量评估系统</title>
    <style>
        /* 全局样式 */
        :root {
            --primary-color: #4a6bdf;
            --secondary-color: #6c757d;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --success-color: #28a745;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f7fa;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 按钮样式 */
        .cta-button {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .cta-button:hover {
            background-color: #3a56b5;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .cta-button.secondary {
            background-color: var(--secondary-color);
            margin-left: 15px;
        }

        .cta-button.outline {
            background-color: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
        }

        /* 标题样式 */
        h1, h2, h3, h4 {
            color: var(--dark-color);
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 2.5rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2rem;
            text-align: center;
            margin: 2rem 0;
            position: relative;
        }

        h2:after {
            content: "";
            display: block;
            width: 80px;
            height: 4px;
            background: var(--primary-color);
            margin: 15px auto;
            border-radius: 2px;
        }

        h3 {
            font-size: 1.5rem;
        }

        /* 导航栏 */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        /* 英雄区域 */
        .hero-section {
            background: linear-gradient(135deg, #4a6bdf 0%, #6c8eff 100%);
            color: white;
            padding: 5rem 0;
            text-align: center;
        }

        .hero-section h1 {
            color: white;
            margin-bottom: 1.5rem;
        }

        .hero-section .subtitle {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            opacity: 0.9;
        }

        /* 功能区域 */
        .features-section {
            padding: 4rem 0;
            background-color: white;
        }

        .feature-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #eee;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .feature-card .icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .feature-card h3 {
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .feature-card ul {
            list-style-position: inside;
            margin-top: 1rem;
        }

        .feature-card li {
            margin-bottom: 0.5rem;
        }

        /* 词云区域 */
        .word-cloud-section {
            margin: 4rem 0;
            text-align: center;
        }

        .word-cloud {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 30px auto;
            max-width: 800px;
        }

        .word-cloud span {
            padding: 5px 15px;
            border-radius: 20px;
            display: inline-block;
            background-color: #f0f4ff;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }

        .word-cloud span:hover {
            background-color: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        /* 设置不同词的大小 */
        .w1 { font-size: 28px; }
        .w2 { font-size: 24px; }
        .w3 { font-size: 22px; }
        .w4 { font-size: 26px; }
        .w5 { font-size: 20px; }
        .w6 { font-size: 18px; }
        .w7 { font-size: 16px; }
        .w8 { font-size: 16px; }
        .w9 { font-size: 14px; }
        .w10 { font-size: 20px; }
        .w11 { font-size: 18px; }
        .w12 { font-size: 16px; }
        .w13 { font-size: 14px; }
        .w14 { font-size: 12px; }
        .w15 { font-size: 10px; }

        /* 技术优势 */
        .tech-advantages {
            padding: 4rem 0;
            background-color: #f8f9fa;
        }

        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            text-align: center;
            margin: 40px 0;
        }

        .advantage {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .advantage h3 {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .advantage p {
            color: var(--secondary-color);
            font-weight: 500;
        }

        /* 模型对比 */
        .model-comparison {
            padding: 4rem 0;
            background-color: white;
        }

        .comparison-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .tab-button {
            padding: 0.8rem 1.5rem;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .tab-button.active {
            border-bottom: 3px solid var(--primary-color);
            color: var(--primary-color);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
        }

        .comparison-table th, .comparison-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .comparison-table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

        .comparison-table tr:hover {
            background-color: #f5f7ff;
        }

        .highlight {
            color: var(--primary-color);
            font-weight: bold;
        }

        /* 未来展望 */
        .future-section {
            padding: 4rem 0;
            background-color: #f8f9fa;
        }

        .future-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }

        .future-card {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .future-card h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }

        .future-card h3:before {
            content: "✓";
            color: var(--success-color);
            margin-right: 10px;
            font-weight: bold;
        }

        .future-card p {
            margin-bottom: 1rem;
        }

        .future-card .example {
            font-style: italic;
            color: var(--secondary-color);
            padding-left: 1rem;
            border-left: 3px solid #eee;
        }

        /* 立即开始区域 */
        .get-started {
            padding: 5rem 0;
            background-color: white;
            text-align: center;
        }

        .get-started h2 {
            margin-bottom: 1.5rem;
        }

        .get-started p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: var(--secondary-color);
        }

        /* 页脚 */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 3rem 0;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin: 2rem 0;
        }

        .footer-links li {
            margin: 0 1rem;
        }

        .footer-links a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: white;
        }

        .copyright {
            color: #adb5bd;
            margin-top: 2rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.8rem;
            }

            .nav-links {
                display: none;
            }

            .feature-cards, .future-cards {
                grid-template-columns: 1fr;
            }

            .advantages-grid {
                grid-template-columns: 1fr 1fr;
            }

            .cta-button.secondary {
                margin-left: 0;
                margin-top: 1rem;
            }
        }
    </style>
</head>
<body>
<!-- 英雄区域 -->
<section class="hero-section">
    <div class="container">
        <h1>企业工程计划预测及管理系统</h1>
        <p class="subtitle">基于Fine-SE模型，整合语义特征与专家特征，提供精准的软件开发工作量预测</p>
        <a id="startButton" class="cta-button">立即开始</a>
    </div>
</section>

<!-- 主要功能 -->
<section id="features" class="features-section">
    <div class="container">
        <h2>核心功能</h2>

        <div class="feature-cards">
            <!-- 功能1: 特征提取 -->
            <div class="feature-card">
                <div class="icon">🔍</div>
                <h3>特征提取</h3>
                <ul>
                    <li><strong>语义特征</strong>：通过BERT预训练模型从任务标题和描述中提取</li>
                    <li><strong>专家特征</strong>：13种关键特征反映开发者和测试者能力</li>
                    <li>自动分析历史数据，量化开发者经验</li>
                </ul>
            </div>

            <!-- 功能2: 特征集成 -->
            <div class="feature-card">
                <div class="icon">⚙️</div>
                <h3>特征集成</h3>
                <ul>
                    <li>全连接层降维处理高维语义特征</li>
                    <li>智能平衡语义与专家特征影响</li>
                    <li>生成综合特征向量提升模型鲁棒性</li>
                </ul>
            </div>

            <!-- 功能3: 工作量估计 -->
            <div class="feature-card">
                <div class="icon">📈</div>
                <h3>工作量估计</h3>
                <ul>
                    <li><strong>项目内估计</strong>：同一项目数据划分训练测试</li>
                    <li><strong>跨项目估计</strong>：其他项目数据训练应用于目标项目</li>
                    <li>支持工业项目和开源项目验证</li>
                </ul>
            </div>
        </div>

        <!-- 词云展示 -->
        <div class="word-cloud-section">
            <h3>我们的技术关键词</h3>
            <div class="word-cloud">
                <span class="w1">BERT</span>
                <span class="w2">语义特征</span>
                <span class="w3">专家特征</span>
                <span class="w4">Fine-SE</span>
                <span class="w5">工作量估计</span>
                <span class="w6">深度学习</span>
                <span class="w7">MAE</span>
                <span class="w8">MMRE</span>
                <span class="w9">PRED(50)</span>
                <span class="w10">软件工程</span>
                <span class="w11">AI for SE</span>
                <span class="w12">跨项目评估</span>
                <span class="w13">企业应用</span>
                <span class="w14">ICT</span>
                <span class="w15">敏捷开发</span>
            </div>
        </div>
    </div>
</section>

<!-- 技术优势 -->
<section class="tech-advantages">
    <div class="container">
        <h2>技术优势</h2>
        <div class="advantages-grid">
            <div class="advantage">
                <h3>32.0%-45.2%</h3>
                <p>相比专家评估的性能提升</p>
            </div>
            <div class="advantage">
                <h3>8.9%-91.4%</h3>
                <p>相比现有最佳模型的改进</p>
            </div>
            <div class="advantage">
                <h3>13项</h3>
                <p>关键专家特征整合</p>
            </div>
            <div class="advantage">
                <h3>30,000+</h3>
                <p>软件任务验证数据</p>
            </div>
        </div>
    </div>
</section>

<!-- 模型对比 -->
<section id="comparison" class="model-comparison">
    <div class="container">
        <h2>与其他模型对比</h2>

        <div class="comparison-tabs">
            <button class="tab-button active" onclick="openTab(event, 'expert-comparison')">专家估计</button>
            <button class="tab-button" onclick="openTab(event, 'deepse-comparison')">Deep-SE</button>
            <button class="tab-button" onclick="openTab(event, 'gpt2sp-comparison')">GPT2SP</button>
            <button class="tab-button" onclick="openTab(event, 'summary-comparison')">综合对比</button>
        </div>

        <!-- 专家估计对比 -->
        <div id="expert-comparison" class="tab-content active">
            <table class="comparison-table">
                <thead>
                <tr>
                    <th>维度</th>
                    <th>专家估计</th>
                    <th>Fine-SE</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><strong>准确性</strong></td>
                    <td>依赖主观经验，误差较大（MAE较高）</td>
                    <td>自动化，误差降低 <span class="highlight">32.0%-45.2%</span></td>
                </tr>
                <tr>
                    <td><strong>一致性</strong></td>
                    <td>受个体经验影响，结果波动大</td>
                    <td>基于数据驱动，结果稳定</td>
                </tr>
                <tr>
                    <td><strong>适用性</strong></td>
                    <td>适用于小规模任务</td>
                    <td>适用于大规模任务（如每月 40+ ARs）</td>
                </tr>
                <tr>
                    <td><strong>效率</strong></td>
                    <td>耗时，需人工参与</td>
                    <td>快速自动化，减少人工成本</td>
                </tr>
                </tbody>
            </table>
            <p><strong>关键结论：</strong> Fine-SE 在工业场景中显著优于人工估计，尤其适合高频率、大规模的任务分配。</p>
        </div>

        <!-- Deep-SE对比 -->
        <div id="deepse-comparison" class="tab-content">
            <table class="comparison-table">
                <thead>
                <tr>
                    <th>维度</th>
                    <th>Deep-SE</th>
                    <th>Fine-SE</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><strong>特征类型</strong></td>
                    <td>仅语义特征（LSTM + 循环神经网络）</td>
                    <td>语义 + 专家特征（BERT + 全连接层）</td>
                </tr>
                <tr>
                    <td><strong>性能提升</strong></td>
                    <td>基线模型</td>
                    <td>MAE 降低 <span class="highlight">41.9%</span>，MMRE 降低 <span class="highlight">27.6%</span>
                    </td>
                </tr>
                <tr>
                    <td><strong>数据需求</strong></td>
                    <td>需大量标注数据</td>
                    <td>通过专家特征增强小数据场景的鲁棒性</td>
                </tr>
                <tr>
                    <td><strong>工业适用性</strong></td>
                    <td>在开源项目中表现较好</td>
                    <td>在工业项目中优势更明显（提升 <span class="highlight">8.9%-91.4%</span>）</td>
                </tr>
                </tbody>
            </table>
            <p><strong>关键结论：</strong> Fine-SE 通过集成专家特征，弥补了纯语义模型在工业场景中的局限性。</p>
        </div>

        <!-- GPT2SP对比 -->
        <div id="gpt2sp-comparison" class="tab-content">
            <table class="comparison-table">
                <thead>
                <tr>
                    <th>维度</th>
                    <th>GPT2SP</th>
                    <th>Fine-SE</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><strong>技术基础</strong></td>
                    <td>基于 GPT-2 的 Transformer 模型</td>
                    <td>BERT + 专家特征融合</td>
                </tr>
                <tr>
                    <td><strong>特征利用</strong></td>
                    <td>仅文本语义</td>
                    <td>文本语义 + 开发者历史行为数据</td>
                </tr>
                <tr>
                    <td><strong>性能提升</strong></td>
                    <td>基线模型</td>
                    <td>MAE 降低 <span class="highlight">16.2%</span>，MMRE 降低 <span class="highlight">37.4%</span>
                    </td>
                </tr>
                <tr>
                    <td><strong>跨项目表现</strong></td>
                    <td>对领域差异敏感</td>
                    <td>通过专家特征适配不同项目（提升 <span class="highlight">71.9%</span>）</td>
                </tr>
                </tbody>
            </table>
            <p><strong>关键结论：</strong> Fine-SE 在跨项目估计中表现更稳定，减少了对预训练模型通用性的依赖。</p>
        </div>

        <!-- 综合对比 -->
        <div id="summary-comparison" class="tab-content">
            <table class="comparison-table">
                <thead>
                <tr>
                    <th>模型</th>
                    <th>特征类型</th>
                    <th>优势</th>
                    <th>局限性</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><strong>专家估计</strong></td>
                    <td>主观经验</td>
                    <td>灵活，无需数据</td>
                    <td>误差大，不可复用</td>
                </tr>
                <tr>
                    <td><strong>Deep-SE</strong></td>
                    <td>语义特征</td>
                    <td>自动化，适合开源项目</td>
                    <td>工业场景性能不足</td>
                </tr>
                <tr>
                    <td><strong>GPT2SP</strong></td>
                    <td>语义特征（GPT-2）</td>
                    <td>捕捉复杂语义关系</td>
                    <td>需要大量训练数据</td>
                </tr>
                <tr>
                    <td><strong>Fine-SE</strong></td>
                    <td>语义 + 专家特征</td>
                    <td>工业场景最优，鲁棒性强</td>
                    <td>依赖专家特征收集</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</section>

<!-- 未来展望 -->
<section id="future" class="future-section">
    <div class="container">
        <h2>应用前景</h2>

        <div class="future-cards">
            <div class="future-card">
                <h3>对企业的核心价值</h3>
                <p><strong>精准规划资源</strong> - 通过自动化工作量估计，优化人力资源分配，减少项目延期风险。</p>
                <p class="example">示例：提前识别高工作量任务，避免开发者过载。</p>
                <p><strong>降低成本与风险</strong> - 减少因低估工作量导致的加班或外包成本。</p>
                <p><strong>数据驱动决策</strong> - 结合历史数据与实时预测，辅助管理层制定更科学的项目计划。</p>
            </div>

            <div class="future-card">
                <h3>软件开发与IT服务</h3>
                <p><strong>适用场景</strong>：敏捷开发中的迭代任务拆分（如用户故事点估计）。</p>
                <p><strong>案例</strong>：ICT企业用于大型系统开发。</p>
                <p>帮助企业减少约60%的项目延期问题，优化资源分配。</p>
            </div>

            <div class="future-card">
                <h3>金融科技(FinTech)</h3>
                <p><strong>需求</strong>：高频迭代的金融软件（如支付系统）需快速准确的任务评估。</p>
                <p><strong>结合点</strong>：利用专家特征量化合规性审查等特殊任务的工作量。</p>
                <p>满足金融行业严格的时间要求。</p>
            </div>
        </div>
    </div>
</section>

<!-- 立即开始区域 -->
<section id="start" class="get-started">
    <div class="container">
        <h2>准备好提高您的工作量评估准确性了吗？</h2>
        <p>立即体验基于Fine-SE模型的智能评估系统</p>
        <a id="trainButton" class="cta-button primary">开始模型训练</a>
        <a id="predictButton" class="cta-button secondary">直接进行预测</a>
    </div>
</section>

<!-- 页脚 -->
<footer>
    <div class="container">
        <div class="logo" style="color: white; margin-bottom: 1rem;">Fine-SE</div>
        <ul class="footer-links">
            <li><a href="#features">核心功能</a></li>
            <li><a href="#comparison">模型对比</a></li>
            <li><a href="#future">未来展望</a></li>
            <li><a href="#start">立即开始</a></li>
        </ul>
        <p class="copyright">© 2024 Fine-SE 工作量评估系统. 保留所有权利.</p>
    </div>
</footer>

<script>
    // 标签切换功能
    function openTab(evt, tabName) {
        var i, tabcontent, tabbuttons;

        // 隐藏所有标签内容
        tabcontent = document.getElementsByClassName("tab-content");
        for (i = 0; i < tabcontent.length; i++) {
            tabcontent[i].classList.remove("active");
        }

        // 移除所有按钮的active类
        tabbuttons = document.getElementsByClassName("tab-button");
        for (i = 0; i < tabbuttons.length; i++) {
            tabbuttons[i].classList.remove("active");
        }

        // 显示当前标签内容并激活按钮
        document.getElementById(tabName).classList.add("active");
        evt.currentTarget.classList.add("active");
    }

    // 监听来自父窗口的消息
    window.addEventListener('message', function(event) {
        if (event.data.type === 'scrollToSection') {
            const section = document.getElementById(event.data.sectionId);
            if (section) {
                section.scrollIntoView({ behavior: 'smooth' });
            }
        }
    });

    document.getElementById('startButton').addEventListener('click', function(e) {
        // 通过 parent 访问父页面的方法
        const isLoggedIn = parent.getLoginStatus ? parent.getLoginStatus() : false;

        if (!isLoggedIn) {
            e.preventDefault();
            if (parent.showLoginAlert) {
                parent.showLoginAlert(); // 调用父页面的提示模态框
            } else {
                alert('请先登录！'); // 备用提示
            }
        } else {
            // 已登录的正常跳转逻辑
            window.location.href = "#start";
        }
    });

    document.getElementById('trainButton').addEventListener('click', function(e) {
        // 通过 parent 访问父页面的方法
        const isLoggedIn = parent.getLoginStatus ? parent.getLoginStatus() : false;

        if (!isLoggedIn) {
            e.preventDefault();
            if (parent.showLoginAlert) {
                parent.showLoginAlert(); // 调用父页面的提示模态框
            } else {
                alert('请先登录！'); // 备用提示
            }
        } else {
            // 已登录的正常跳转逻辑
            parent.window.location.href = "/train";
        }
    });

    document.getElementById('predictButton').addEventListener('click', function(e) {
        // 通过 parent 访问父页面的方法
        const isLoggedIn = parent.getLoginStatus ? parent.getLoginStatus() : false;

        if (!isLoggedIn) {
            e.preventDefault();
            if (parent.showLoginAlert) {
                parent.showLoginAlert(); // 调用父页面的提示模态框
            } else {
                alert('请先登录！'); // 备用提示
            }
        } else {
            // 已登录的正常跳转逻辑
           parent.window.location.href = "/predict";
        }
    });
document.addEventListener('DOMContentLoaded', function() {
    // 定义需要观察的区块
    const sections = {
        features: document.getElementById('features'),
        comparison: document.getElementById('comparison'),
        future: document.getElementById('future'),
        start: document.getElementById('start')
    };

    // 创建 Intersection Observer 实例
    const observer = new IntersectionObserver((entries) => {
        let activeSection = null;

        entries.forEach(entry => {
            if (entry.isIntersecting) {
                activeSection = entry.target.id;
            }
        });

        if (activeSection) {
            parent.postMessage({
                type: 'sectionActive',
                sectionId: activeSection
            }, '*');
        }
    }, {
        threshold: 0.5,
        rootMargin: '0px 0px -50% 0px'
    });

    // 开始观察每个区块
    Object.values(sections).forEach(section => {
        if (section) observer.observe(section);
    });

    // 添加滚动监听
    let lastScrollPosition = window.scrollY;
    window.addEventListener('scroll', function() {
        const currentScrollPosition = window.scrollY;
        const scrollPosition = currentScrollPosition + window.innerHeight;
        const pageHeight = document.documentElement.scrollHeight;

        // 检测是否到达顶部
        if (currentScrollPosition <= 50) { // 50px容差
            parent.postMessage({
                type: 'clearAllActive'
            }, '*');
            return;
        }

        // 检测是否到达底部
        if (scrollPosition >= pageHeight - 50) {
            parent.postMessage({
                type: 'sectionActive',
                sectionId: 'start'
            }, '*');
            parent.postMessage({
                type: 'sectionInactive',
                sectionId: 'future'
            }, '*');
            return;
        }

        lastScrollPosition = currentScrollPosition;
    });

    // 初始状态
    parent.postMessage({
        type: 'clearAllActive'
    }, '*');
});
</script>
</body>
</html>